import 'package:flutter/material.dart';

class StudyButton extends StatelessWidget {
  const StudyButton({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text("Button"),
      ),
      body: Center(
        child: Column(
          children: [
            ElevatedButton(onPressed: (){},child: const Text("RaisedButton")),
            const Divider(),
            TextButton(onPressed: (){}, child: const Text("FlatButton")),
            const Divider(),
            OutlinedButton(onPressed: (){},child: const Text("OutlineButton")),
            const Divider(),
            IconButton(icon: const Icon(Icons.thumb_up),onPressed: (){},),
            const Divider(),
            Row(
              mainAxisAlignment: MainAxisAlignment.spaceAround,
              children: [
                ElevatedButton.icon(onPressed: (){}, icon: const Icon(Icons.send), label: const Text("发送")),
                OutlinedButton.icon(onPressed: (){}, icon: const Icon(Icons.add), label: const Text("添加")),
              ],
            ),
            const Divider(),
            Column(
              children: [
                const Text("自定义按钮外观"),
                ElevatedButton(
                    onPressed: (){},
                    child: const Text("Submit"),
                )
              ],
            )
          ],
        ),
      ),
    );
  }

}